package two

class Calculator {
  def calculate(x: Int, y: Int, op: Char): Any = op match {
    case '+' => x + y
    case '-' => x - y
    case '*' => x * y
    case '/' => x / y
    case _ => "Invalid operator"
  }

}
